package com.daigg.hoteladmin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.daigg.hoteladmin.pojo.po.MenuPO;
import com.daigg.hoteladmin.pojo.vo.MenuDeptVO;
import com.daigg.hoteladmin.pojo.vo.MenuVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author daiyang
 */
@Mapper
@Repository
public interface MenuMapper extends BaseMapper<MenuPO> {

    List<MenuVO> getMenuTreeByDeptIdAndRole(@Param("vo") MenuDeptVO vo);
}
